package com.bdqn.crm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bdqn.crm.pojo.SysRight;
import com.bdqn.crm.pojo.SysRole;

import java.util.List;

/**
 *
 */
public interface SysRoleService extends IService<SysRole> {

    /**
     * 角色增删改查
     * @return
     */
    List<SysRole> findAllRoles();

    /**
     * 权限查询
     * @return
     */
    List<SysRight> findAllRights();
    List<SysRight> findRightsByRole(SysRole role);

    List<SysRole> selectPages(String roleName, Integer pageIndex , Integer pageSize);
}
